package com.binvshe.binvshe.activity;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * FileName: ActivityEntity
 *
 * @CretedBy : zofnk
 * @CreateDate: 2016/9/19 17:15
 * @E-mail: zofnk@vip.qq.com
 * @RevisionsDate：
 * @ModifyNotes：
 */
public class ActivityEntity implements Serializable{

    /**
     * id : 4
     * name : 名称
     * icon : http://120.76.128.98/upload/14e25c8e-2fa2-4b97-adb4-6cdef61f0cb1.jpg
     * sponsor : 测试
     * introduction : <p>123</p>
     * detail : <p>12323232</p>
     * member_limit : 100
     * type : 0
     * club_id : 0
     * user_id : 0
     * begin_time : 1473091200000
     * end_time : 1473955200000
     * deadline : 1474646400000
     * province : 福建
     * city : 厦门
     * address : 福建省厦门市思明区莲前西路285号-之4
     * longitude : 118.143504
     * latitude : 24.483033
     * price : ￥100~123
     * member_count : 1
     * read_count : 98
     * share_count : 0
     * state : true
     * del : false
     *
     * ticket_stock:票数：
     * members : []
     * banners : [{"id":4,"name":"横幅一21232","image":"http://static.binvshe.com/static/modo/20160919105710283373_960*640.jpg","link":"12","description":"32323","state":true,"type":"activity","target_id":4},{"id":5,"name":"横幅一343","image":"http://static.binvshe.com/static/modo/20160919105705002508_960*635.jpg","link":"12","description":"32323","state":true,"type":"activity","target_id":4}]
     */

    private int id;
    private String name;
    private String icon;
    private String sponsor;
    private String sponsor_avatar;//主办方头像
    private String introduction;
    private String detail;
    private String member_limit;
    private int type;
    private int club_id;
    private int user_id;
    private long begin_time;
    private long end_time;
    private long deadline;
    private int ticket_stock;
    private String province;
    private String city;
    private String address;
    private double longitude;
    private double latitude;
    private String price;
    private int member_count;
    private int read_count;
    private int share_count;
    private boolean state;
    private boolean del;
    private int notice_count;
    private List<?> members;
    private boolean sell_ticket;  // 是否有售票
    private boolean expired;  // 是否过期
    private String duration;//时间区域

    /**
     * id : 4
     * name : 横幅一21232
     * image : http://static.binvshe.com/static/modo/20160919105710283373_960*640.jpg
     * link : 12
     * description : 32323
     * state : true
     * type : activity
     * target_id : 4
     */

    private List<BannersBean> banners;




    public int getTicket_stock() {
        return ticket_stock;
    }

    public void setTicket_stock(int ticket_stock) {
        this.ticket_stock = ticket_stock;
    }


    public int getNotice_count() {
        return notice_count;
    }

    public void setNotice_count(int notice_count) {
        this.id = notice_count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getMember_limit() {
        return member_limit;
    }

    public void setMember_limit(String member_limit) {
        this.member_limit = member_limit;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getClub_id() {
        return club_id;
    }

    public void setClub_id(int club_id) {
        this.club_id = club_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public long getBegin_time() {
        return begin_time;
    }

    public void setBegin_time(long begin_time) {
        this.begin_time = begin_time;
    }

    public long getEnd_time() {
        return end_time;
    }

    public void setEnd_time(long end_time) {
        this.end_time = end_time;
    }

    public long getDeadline() {
        return deadline;
    }

    public void setDeadline(long deadline) {
        this.deadline = deadline;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getMember_count() {
        return member_count;
    }

    public void setMember_count(int member_count) {
        this.member_count = member_count;
    }

    public int getRead_count() {
        return read_count;
    }

    public void setRead_count(int read_count) {
        this.read_count = read_count;
    }

    public int getShare_count() {
        return share_count;
    }

    public void setShare_count(int share_count) {
        this.share_count = share_count;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public boolean isDel() {
        return del;
    }

    public void setDel(boolean del) {
        this.del = del;
    }

    public List<?> getMembers() {
        return members;
    }

    public void setMembers(List<?> members) {
        this.members = members;
    }

    public List<BannersBean> getBanners() {
        return banners;
    }

    public void setBanners(List<BannersBean> banners) {
        this.banners = banners;
    }

    public boolean isExpired() {
        return expired;
    }

    public void setExpired(boolean expired) {
        this.expired = expired;
    }

    public boolean isSell_ticket() {
        return sell_ticket;
    }

    public void setSell_ticket(boolean sell_ticket) {
        this.sell_ticket = sell_ticket;
    }

    public String getDuration() {
        return duration;
    }

    public String getSponsor_avatar() {
        if (TextUtils.isEmpty(sponsor_avatar)) {
            return "";
        }
        return sponsor_avatar;
    }

    public static class BannersBean {
        private int id;
        private String name;
        private String image;
        private String link;
        private String description;
        private boolean state;
        private String type;
        private int target_id;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public boolean isState() {
            return state;
        }

        public void setState(boolean state) {
            this.state = state;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getTarget_id() {
            return target_id;
        }

        public void setTarget_id(int target_id) {
            this.target_id = target_id;
        }
    }
}
